wayland: Implement gdk_utf8_to_string_target
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 27 Jun 2016 09:57:21 +0000 (11:57 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 30 Jun 2016 12:10:26 +0000 (14:10 +0200)
commit4b003a75aa4bc7a5210792082380b24c78abc8d5
tree68ea4405f693cce5cd92ccf827351ddd9a33ce0e
parent51444b7909cca57238149c519ff8c353b2c47b7b
wayland: Implement gdk_utf8_to_string_target

The sanitize_utf8() function has been copied from X11 so both
backends behave the same. This allows interaction with older clients
(mainly through Xwayland, and the STRING selection target) that
request non-utf8 text.

https://bugzilla.gnome.org/show_bug.cgi?id=768082
gdk/wayland/gdkselection-wayland.c